package controller;

import java.util.Date;
import java.util.List;

import javax.ejb.Stateless;
import javax.inject.Inject;

import dao.UnionDueDao;
import entity.Employee;
import entity.Union;
import entity.UnionDue;
@Stateless
public class UnionDueController {

	@Inject
	UnionDueDao unionDueDao;

	public UnionDue RegisterNewUnionService(Date date, float amount, Union union) {
		return unionDueDao.CreateUnionDao(date, amount, union);
	}

	public List<UnionDue> ListUnionDueEmployee(Employee employee) {
		return unionDueDao.ListUnionDueEmployee(employee);
	}

	public int removeUnionDue(UnionDue unionDue) {
		return unionDueDao.removeUnionDue(unionDue);

	}
}
